<?php
class Categoria extends AppModel {

	var $name = 'Categoria';
        var $actsAs = array('Sluggable' => array('label'=>'nome'));
        var $recursive = 3;
        var $order = array('Categoria.nome'=>'ASC');
	var $validate = array(
		'nome' => array('notempty')
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'Secao' => array(
			'className' => 'Secao',
			'foreignKey' => 'secao_id',
			'conditions' => '',
			'fields' => '',
			'order' => 'Secao.nome'
		)
	);

        var $hasMany = array(
            'Texto' => array(
                'className' => 'Texto',
                'conditions' => '',
                'fields' => '',
                'order' => 'Texto.created DESC'
            )
        );
}
?>